package com.whminwei.edu.api.dc.dto.fspn.other;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author wangy
 * @since 2024/7/28
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DcCpcFspn {

    private String id;
    /**
     * 党组织编号
     */
    private String no;
    /**
     * 党组织名称
     */
    private String name;
    /**
     * 上级党组织名称
     */
    private String supName;
    /**
     * 党组织类型
     */
    private String type;
    /**
     * 党组织成员
     */
    private List<DcMember> memberList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public static class DcMember {
        /**
         * 教职工id
         */
        private String staffId;
        /**
         * 成员类型/领导职务
         */
        private String memberType;
    }
}
